#ifndef CAMERA_WIDGET_H
#define CAMERA_WIDGET_H

#include <QWidget>
#include <QLabel>
#include "camera_thread.h"
namespace Ui {
class camera_Widget;
}

class camera_Widget : public QWidget
{
    Q_OBJECT

public:
    explicit camera_Widget(QWidget *parent = nullptr);
    ~camera_Widget();
signals:
    void showMenu();
private slots:
    void on_pushButton_clicked();
    void on_pushButton_2_clicked();
private slots:
    void updateFrame(const QImage &image);
    void handleError(const QString &message);
private:
    Ui::camera_Widget *ui;
private:

    CameraThread *m_cameraThread;
};

#endif // CAMERA_WIDGET_H
